package com.aorise.utils;

/**
 * @Auther: zhouhao
 * @Date: 2019/6/13
 * @Description:    处理类型：1改派 2接单 3退回 4 待确认 5 完成
 */
public enum DisposeTypeEnum {

    REASSIGNMENT(1,"改派"),
    ORDERRECEIVING(2,"接单"),
    SENDBACK(3,"退回"),
    TOBECONFIRMED(4,"待确认"),
    NOTPASS(5,"未通过"),
    ACCOMPLISH(6,"完成");


    private Integer en;
    private String chinese;

    DisposeTypeEnum(Integer en, String chinese) {
        this.en = en;
        this.chinese = chinese;
    }

    public Integer getEn() {
        return en;
    }

    public void setEn(Integer en) {
        this.en = en;
    }

    public String getChinese() {
        return chinese;
    }

    public void setChinese(String chinese) {
        this.chinese = chinese;
    }


    public static DisposeTypeEnum getEnumType(Integer en){
        for(DisposeTypeEnum enums:DisposeTypeEnum.values()){
            if(enums.getEn() == en){
                return enums;
            }
        }
        return null;
    }
}
